package com.example.springbatchsample.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 数据读取
 *
 * @author Yunkai Luo
 * @since 2022/1/28
 **/
@Slf4j
public class MyItemWriter<T> implements ItemWriter<T> {
    @Override public void write(List<? extends T> items) throws Exception {
        log.error(items + "...");
    }
}
